package org.app
package models

// 图书类
// id, 书名，作者，available:是否可外借
case class BookModel(id: Int, name: String, author: String, var available:Boolean){
  override def toString: String = {
    val availableStr = if(available) "可外借" else "已借出"
    s"编号：$id \t $name  \t $author, $availableStr"
  }
}
